package my.mark.mybaibaoxiang.eventDemo.easyEvent;

import java.util.EventObject;

/**
 * @author twotiger-wxm.
 * @date 2019-9-11.
 */
public class DoorEvent extends EventObject {
    private static final long serialVersionUID = 6496098798146410884L;

    private final String key;
    private final String value;

    /**source存放Object对象，传递业务数据对象。*/
    public DoorEvent(Object source,String key,String value) {
        super(source);
        this.key = key;
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public String getKey() {
        return key;
    }
}
